package kr.hkit.powerjava.chapter09.aa;

public class Result02 {

	int data = 0;

	public Result02(int data) {
		System.out.println(this.data);
		this.data += data;
	}

	public Result02() {
		System.out.println(data);
		data++;
	}
	
	public static void main(String[] args) {
		Result02 r1 = new Result02();
		System.out.println(r1.data);
		
		Result02 r2 = new Result02(5);
		System.out.println(r2.data);
	}
	
}
